home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / share / gtksourceview-2.0 / language-specs / vbnet.lang < prev    next >
Extensible Markup Language  |  2009-10-02  |  8KB  |  245 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.  
  4.  Author: John Luke <jluke@cfl.rr.com>
  5.  Copyright (C) 2004 John Luke <jluke@cfl.rr.com>
  6.  
  7.  This library is free software; you can redistribute it and/or
  8.  modify it under the terms of the GNU Library General Public
  9.  License as published by the Free Software Foundation; either
  10.  version 2 of the License, or (at your option) any later version.
  11.  
  12.  This library is distributed in the hope that it will be useful,
  13.  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.  Library General Public License for more details.
  16.  
  17.  You should have received a copy of the GNU Library General Public
  18.  License along with this library; if not, write to the
  19.  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20.  Boston, MA 02111-1307, USA.
  21.  
  22. -->
  23. <language id="vbnet" _name="VB.NET" version="2.0" _section="Sources">
  24.   <metadata>
  25.     <property name="mimetypes">text/x-vbnet;text/x-vb</property>
  26.     <property name="globs">*.vb</property>
  27.     <property name="line-comment-start">'</property>
  28.   </metadata>
  29.  
  30.   <styles>
  31.     <style id="comment" _name="Comment" map-to="def:comment"/>
  32.     <style id="string" _name="String" map-to="def:string"/>
  33.     <style id="preprocessor" _name="Preprocessor" map-to="def:preprocessor"/>
  34.     <style id="keyword" _name="Keyword" map-to="def:keyword"/>
  35.     <style id="type" _name="Data Type" map-to="def:type"/>
  36.     <style id="special-constant" _name="Special constant" map-to="def:special-constant"/>
  37.     <style id="boolean" _name="Boolean value" map-to="def:boolean"/>
  38.   </styles>
  39.  
  40.   <default-regex-options case-sensitive="false"/>
  41.  
  42.   <definitions>
  43.  
  44.     <context id="line-comment" style-ref="comment" end-at-line-end="true">
  45.       <start>'</start>
  46.       <include>
  47.         <context ref="def:in-line-comment"/>
  48.       </include>
  49.     </context>
  50.  
  51.     <context id="old-style-comment" style-ref="comment" end-at-line-end="true">
  52.       <start>^rem</start>
  53.       <include>
  54.         <context ref="def:in-line-comment"/>
  55.       </include>
  56.     </context>
  57.  
  58.     <context id="string" style-ref="string" end-at-line-end="true">
  59.       <start>"</start>
  60.       <end>"</end>
  61.     </context>
  62.  
  63.     <context id="preprocessor" style-ref="preprocessor" end-at-line-end="true">
  64.       <start extended="true">
  65.         ^\s*#\s*
  66.         (define|undef|if(n?def)?|else|elif|end if|line|error|region|end region)
  67.         \b
  68.       </start>
  69.       <include>
  70.         <context ref="line-comment"/>
  71.       </include>
  72.     </context>
  73.  
  74.     <context id="keywords" style-ref="keyword">
  75.       <keyword>addhandler</keyword>
  76.       <keyword>addressof</keyword>
  77.       <keyword>alias</keyword>
  78.       <keyword>and</keyword>
  79.       <keyword>andalso</keyword>
  80.       <keyword>ansi</keyword>
  81.       <keyword>as</keyword>
  82.       <keyword>assembly</keyword>
  83.       <keyword>auto</keyword>
  84.       <keyword>binary</keyword>    
  85.       <keyword>byref</keyword>
  86.       <keyword>byval</keyword>    
  87.       <keyword>call</keyword>
  88.       <keyword>case</keyword>
  89.       <keyword>catch</keyword>
  90.       <keyword>cbool</keyword>
  91.       <keyword>cbyte</keyword>
  92.       <keyword>cchar</keyword>
  93.       <keyword>cdate</keyword>
  94.       <keyword>cdec</keyword>
  95.       <keyword>cdbl</keyword>
  96.       <keyword>cint</keyword>
  97.       <keyword>class</keyword>
  98.       <keyword>clng</keyword>
  99.       <keyword>cobj</keyword>
  100.       <keyword>compare</keyword>
  101.       <keyword>const</keyword>
  102.       <keyword>cshort</keyword>
  103.       <keyword>csng</keyword>
  104.       <keyword>cstr</keyword>
  105.       <keyword>ctype</keyword>
  106.       <keyword>declare</keyword>
  107.       <keyword>default</keyword>
  108.       <keyword>delegate</keyword>
  109.       <keyword>dim</keyword>
  110.       <keyword>do</keyword>
  111.       <keyword>each</keyword>
  112.       <keyword>else</keyword>
  113.       <keyword>elseif</keyword>
  114.       <keyword>end</keyword>
  115.       <keyword>enum</keyword>
  116.       <keyword>erase</keyword>
  117.       <keyword>error</keyword>
  118.       <keyword>event</keyword>
  119.       <keyword>exit</keyword>
  120.       <keyword>explicit</keyword>    
  121.       <keyword>finally</keyword>
  122.       <keyword>for</keyword>
  123.       <keyword>friend</keyword>
  124.       <keyword>function</keyword>
  125.       <keyword>get</keyword>
  126.       <keyword>goto</keyword>
  127.       <keyword>handles</keyword>
  128.       <keyword>if</keyword>
  129.       <keyword>implements</keyword>
  130.       <keyword>imports</keyword>
  131.       <keyword>in</keyword>
  132.       <keyword>inherits</keyword>
  133.       <keyword>integer</keyword>
  134.       <keyword>interface</keyword>
  135.       <keyword>is</keyword>
  136.       <keyword>let</keyword>
  137.       <keyword>lib</keyword>
  138.       <keyword>like</keyword>
  139.       <keyword>loop</keyword>
  140.       <keyword>me</keyword>
  141.       <keyword>mod</keyword>
  142.       <keyword>module</keyword>
  143.       <keyword>mustinherit</keyword>
  144.       <keyword>mustoverride</keyword>
  145.       <keyword>mybase</keyword>
  146.       <keyword>myclass</keyword>
  147.       <keyword>namespace</keyword>
  148.       <keyword>new</keyword>
  149.       <keyword>next</keyword>
  150.       <keyword>not</keyword>
  151.       <keyword>notinheritable</keyword>
  152.       <keyword>notoverridable</keyword>
  153.       <keyword>off</keyword>
  154.       <keyword>on</keyword>
  155.       <keyword>option</keyword>
  156.       <keyword>optional</keyword>
  157.       <keyword>or</keyword>
  158.       <keyword>orelse</keyword>
  159.       <keyword>overloads</keyword>
  160.       <keyword>overridable</keyword>
  161.       <keyword>overrides</keyword>
  162.       <keyword>param_array</keyword>
  163.       <keyword>preserve</keyword>
  164.       <keyword>private</keyword>
  165.       <keyword>property</keyword>
  166.       <keyword>protected</keyword>
  167.       <keyword>public</keyword>
  168.       <keyword>raiseevent</keyword>
  169.       <keyword>readonly</keyword>
  170.       <keyword>redim</keyword>
  171.       <keyword>rem</keyword>
  172.       <keyword>removehandler</keyword>
  173.       <keyword>resume</keyword>
  174.       <keyword>return</keyword>
  175.       <keyword>select</keyword>
  176.       <keyword>set</keyword>
  177.       <keyword>shadows</keyword>
  178.       <keyword>shared</keyword>
  179.       <keyword>sizeof</keyword>
  180.       <keyword>static</keyword>
  181.       <keyword>step</keyword>
  182.       <keyword>stop</keyword>
  183.       <keyword>strict</keyword>
  184.       <keyword>structure</keyword>
  185.       <keyword>sub</keyword>
  186.       <keyword>synclock</keyword>
  187.       <keyword>text</keyword>
  188.       <keyword>then</keyword>
  189.       <keyword>throw</keyword>
  190.       <keyword>to</keyword>
  191.       <keyword>try</keyword>
  192.       <keyword>typeof</keyword>
  193.       <keyword>unicode</keyword>
  194.       <keyword>until</keyword>
  195.       <keyword>variant</keyword>
  196.       <keyword>when</keyword>
  197.       <keyword>while</keyword>
  198.       <keyword>with</keyword>
  199.       <keyword>withevents</keyword>
  200.       <keyword>writeonly</keyword>
  201.       <keyword>xor</keyword>
  202.       <keyword>yield</keyword> <!--MonoBASIC extension-->
  203.     </context>
  204.  
  205.     <context id="types" style-ref="type">
  206.       <keyword>boolean</keyword>
  207.       <keyword>byte</keyword>
  208.       <keyword>char</keyword>
  209.       <keyword>date</keyword>
  210.       <keyword>decimal</keyword>
  211.       <keyword>double</keyword>
  212.       <keyword>long</keyword>
  213.       <keyword>object</keyword>
  214.       <keyword>short</keyword>
  215.       <keyword>single</keyword>
  216.       <keyword>string</keyword>
  217.     </context>
  218.  
  219.     <context id="special-constants" style-ref="special-constant">
  220.       <keyword>nothing</keyword>
  221.       <keyword>null</keyword>
  222.     </context>
  223.  
  224.     <context id="boolean" style-ref="boolean">
  225.       <keyword>false</keyword>
  226.       <keyword>true</keyword>
  227.     </context>
  228.  
  229.     <context id="vbnet">
  230.       <include>
  231.         <context ref="line-comment"/>
  232.         <context ref="old-style-comment"/>
  233.         <context ref="string"/>
  234.         <context ref="preprocessor"/>
  235.         <context ref="keywords"/>
  236.         <context ref="types"/>
  237.         <context ref="special-constants"/>
  238.         <context ref="boolean"/>
  239.       </include>
  240.     </context>
  241.  
  242.   </definitions>
  243.  
  244. </language>
  245.